﻿#include "dxstdafx.h"
#include "LandedTitles.h"

_stLandedTitlesProperty::_stLandedTitlesProperty(_stLandedTitlesProperty& st)
{
	this->m_eTitleslevel = st.m_eTitleslevel;
	this->m_pFatherTitle = st.m_pFatherTitle;
	this->m_listChildTitles = std::move(st.m_listChildTitles);
	this->m_p_allow = std::move(st.m_p_allow);
	
	m_wstr_IndexName = std::move(st.m_wstr_IndexName);
	m_b_rebel = st.m_b_rebel;
	m_b_landless = st.m_b_landless;
	m_b_primary = st.m_b_primary;
	m_b_tribe = st.m_b_tribe;
	m_b_pirate = st.m_b_pirate;
	m_b_creation_requires_capital = st.m_b_creation_requires_capital;
	m_wstr_culture = std::move(st.m_wstr_culture);
	m_vec_color = std::move(st.m_vec_color);
	m_vec_color2 = std::move(st.m_vec_color2);
	m_n_capital = st.m_n_capital;
	m_wstr_title = std::move(st.m_wstr_title);
	m_wstr_title_female = std::move(st.m_wstr_title_female);
	m_wstr_foa = std::move(st.m_wstr_foa);
	m_b_short_name = st.m_b_short_name;
	m_b_location_ruler_title = st.m_b_location_ruler_title;
	m_wstr_controls_religion = std::move(st.m_wstr_controls_religion);
	m_wstr_religion = std::move(st.m_wstr_religion);
	m_b_dynasty_title_names = st.m_b_dynasty_title_names;
	m_list_male_names = std::move(st.m_list_male_names);
	m_n_dignity = st.m_n_dignity;
	m_b_caliphate = st.m_b_caliphate;
	m_b_mercenary = st.m_b_mercenary;
	m_b_independent = st.m_b_independent;
	m_f_strength_growth_per_century = st.m_f_strength_growth_per_century;
	m_wstr_mercenary_type = std::move(st.m_wstr_mercenary_type);
	m_b_pentarchy = st.m_b_pentarchy;
	m_b_used_for_dynasty_names = st.m_b_used_for_dynasty_names;
	m_list_holy_site = std::move(st.m_list_holy_site);
	m_map_Culture2Name = std::move(st.m_map_Culture2Name);
	m_n_catholic = st.m_n_catholic;
	m_n_muslim = st.m_n_muslim;
	m_n_norse_pagan_reformed = st.m_n_norse_pagan_reformed;
	m_n_baltic_pagan_reformed = st.m_n_baltic_pagan_reformed;
	m_n_slavic_pagan_reformed = st.m_n_slavic_pagan_reformed;
	m_n_orthodox = st.m_n_orthodox;
	m_n_zoroastrian_group = st.m_n_zoroastrian_group;
	m_n_tengri_pagan_reformed = st.m_n_tengri_pagan_reformed;
	m_n_christian = st.m_n_christian;
	m_n_finnish_pagan_reformed = st.m_n_finnish_pagan_reformed;
	m_n_zun_pagan_reformed = st.m_n_zun_pagan_reformed;
	m_n_west_african_pagan_reformed = st.m_n_west_african_pagan_reformed;
	m_n_jewish_group = st.m_n_jewish_group;
	m_b_holy_order = st.m_b_holy_order;
	m_n_monthly_income = st.m_n_monthly_income;
	m_b_purple_born_heirs = st.m_b_purple_born_heirs;
	m_b_has_top_de_jure_capital = st.m_b_has_top_de_jure_capital;
	m_b_assimilate = st.m_b_assimilate;
	m_st_coat_of_arms = std::move(st.m_st_coat_of_arms);
	m_st_pagan_coa = std::move(st.m_st_pagan_coa);
}

bool _stLandedTitlesProperty::empty() const
{
	return m_wstr_IndexName.empty();
}


bool CLandedTitlesProperty::IsDataComplete() const
{
	for (const auto& it : m_mapLandedTitlesProperty)
	{
		if (it.second.empty())
		{
			return false;
		}
	}
	return true;
}
